<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格样式</title>
    <style>
        table,tr,td {
            border:1px solid magenta;
            border-collapse:collapse;/** 边框变细，去空心边框**/
        }
    </style>
</head>
<body>
<table border="1px">
    <tr style="background-color:aquamarine">
        <td>学号</td>
        <td>姓名</td>
        <td>性别</td>
    </tr>
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>性别</td>
    </tr>
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>性别</td>
    </tr>

</table>
</body>
</html>